<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" ></script>
<!-- <script type="text/javascript" src="<?php //echo Yii::app()->theme->baseUrl?>/frontend/js/jquery.js"></script>-->
<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl?>/frontend/js/bootstrap.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl?>/frontend/js/jquery.carouFredSel-6.2.1.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl?>/frontend/js/jquery.flexslider-min.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl?>/frontend/js/main.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl?>/frontend/js/maps.js"></script>
<script type="text/javascript">
    if($('.right').length){
        $('.content').find('.right').css('height', ($('.content').height()-40) + 'px');
    }
    $('.main-menu li a').each(function() {
        var url = String(window.location)
        if ($(this).parent().hasClass('submenu')) {
            $($(this)).next().find('li a').each(function() {
                if ($($(this))[0].href == url) {
                    
                    $(this).parent().parent().prev().addClass('active');
                }
            })
            if ($($(this))[0].href == url) {
                $(this).addClass('active');
            }
        } else {
            if ($($(this))[0].href == url) {
                $(this).addClass('active');
            }
        }
    });
</script>
<script type="text/javascript">
    $(document).ready(function() {
        $('#signInButton').click(function() {
            $(this).attr('href','https://accounts.google.com/o/oauth2/auth?scope=' +
            'https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fplus.login&' +
            'state=generate_a_unique_state_value&' +
            'redirect_uri=http://yardsale.local&'+
            'response_type=code&' +
            'client_id=93562038814-sa9ih1muinpmvlnbd31dpeel665c7gar.apps.googleusercontent.com&' +
            'access_type=offline');
            return true; // Continue with the new href.
      });
    });
</script>
